home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / BSP Tree 1.2 / Sources / Graphics / include / split.h < prev    next >
Encoding:
Text File  |  1995-03-26  |  1.0 KB  |  28 lines  |  [TEXT/MMCC]

  1. //------------------------------------------------------------------------------
  2. //    File:                    split.h
  3. //    Date:                    3/26/95
  4. //    Author:                Bretton Wade
  5. //
  6. //    Description:    this file contains the method for splitting a polygon
  7. //                                with a plane.
  8. //
  9. //------------------------------------------------------------------------------
  10.  
  11. #include "polyptr_3d.h"
  12.  
  13. #ifndef    SPLIT
  14. #define    SPLIT
  15.  
  16. //------------------------------------------------------------------------------
  17. //    enumerations
  18. //------------------------------------------------------------------------------
  19. enum    hclass {IN = -1, ON = 0, OUT = 1, SPANNING = 2};                                                    //    classification type for plane_3d comparisons
  20.  
  21. //------------------------------------------------------------------------------
  22. //    functions
  23. //------------------------------------------------------------------------------
  24. hclass    Split (const polyptr&, const plane_3d&, polyptr&, polyptr&);                        //    split the polygon with a plane_3d
  25.  
  26. //------------------------------------------------------------------------------
  27.  
  28. #endif    //SPLIT